package com.situ.day9;

import org.junit.Test;

public class StaticDemo {

    @Test
    public void test1() {
        Student student1 = new Student();
        student1.id = 1;
        student1.name = "zhansgan";
        student1.show();

        //静态属性是属于这个类的，被所有对象锁共享
        // 但是可以被所有new出来对象共享
        student1.country = "CN";
        Student.country = "CN";

        Student.print();
        student1.print();

    }


}
